﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

[DataContract]

public class Movie
{
    /// <summary>
    /// Whenever a movie object is made, price and title is needed.
    /// </summary>
    /// <param name="title">Set the Title (as string)</param>
    /// <param name="price">Set the Price (as double)</param>
    public Movie(string title, double price)
    {
        Title = title;
        Price = price;
    }

    /// <summary>
    /// Constructor to be used if you want to input everything at once.
    /// </summary>
    /// <param name="title">Title</param>
    /// <param name="description">Description</param>
    /// <param name="price">Base price</param>
    /// <param name="is3d">Is it 3D?</param>
    /// <param name="length">Movie length in minutes</param>
    /// <param name="commercials">Commercial time in minutes</param>
    /// <param name="trailer">Trailer length in minutes</param>
    /// <param name="image">Link to movie poster</param>
    public Movie(String title, string description, double price, bool is3d, int length, int commercials, int trailer, string image)
    {
        Title = title;
        Description = description;
        Price = price;
        Is3d = is3d;
        Length = length;
        Commercials = commercials;
        Trailer = trailer;
        Image = image;
    }
    /// <summary>
    /// Title of the movie
    /// </summary>
    [DataMember]
	public string Title
	{
		get;
		set;
	}

    /// <summary>
    /// Description of the movie.
    /// </summary>
    [DataMember]
	public string Description
	{
		get;
		set;
	}

    /// <summary>
    /// Base price of the movie. (Before price of seats, time and so on)
    /// </summary>
    [DataMember]
	public double Price
	{
		get;
		set;
	}

    /// <summary>
    /// Is the movie in 3d
    /// </summary>
    [DataMember]
	public bool Is3d
	{
		get;
		set;
	}

    /// <summary>
    /// Total length of the movie in minutes
    /// </summary>
    [DataMember]
	public int Length
	{
		get;
		set;
	}

    /// <summary>
    /// Total time of commercials in minutes
    /// </summary>
    [DataMember]
	public int Commercials
	{
		get;
		set;
	}

    /// <summary>
    /// Total time of trailers in minutes
    /// </summary>
    [DataMember]
	public int Trailer
	{
		get;
		set;
	}

    /// <summary>
    /// Link to image file of the movie poster
    /// </summary>
    [DataMember]
	public string Image
	{
		get;
		set;
	}

    [DataMember]
    public int Id
    {
        get;
        set;
    }
    [DataMember]
    public string Time
    {
        get;
        set;
    }
    [DataMember]
    public int ShowTimeID
    {
        get;
        set;
    }


}

